#include <stdio.h>
int main()
{
	char str[1000];
	int i = 0;
	while ((str[i] = getchar()) != '\n')
		i++;
	i--;
	while(i>=0)
	printf("%c", str[i--]);
	
	return 0;
}